/*	
	This program is free software; you can redistribute it and/or modify 
	it under the terms of the GNU General Public License as published by 
	the Free Software Foundation; either version 2 of the License, or 
	any later version.

    	This program is distributed in the hope that it will be useful, but 
	WITHOUT ANY WARRANTY; without even the implied warranty of 
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 
	General Public License for more details.

    	You should have received a copy of the GNU General Public License 
	along with this program; if not, write to the Free Software 
	Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
	USA
*/

#include<string.h>
#include<driver.h>

int strcomp(char *s1,char *s2) {
	int i=0;
	int res=0;
	while (s1[i]) {
		i++;
		if(s1[i]==s2[i]) { res++; }
	}
	if(res==strlen(s1)) return 1; 
	else return 0;
} 

int strlen(char *parola) {
	int i=0;
	while(parola) i++;
	return i;
}

void strcopy(char *parola3,char *parola4) {while(*parola3++ = *parola4++);}

void strclean(char *buffer) {
	int i=0;
	while(buffer[i]) {buffer[i]=' '; i++;}
}
